Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support for uv as package manager #124

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

antoniomdk
Copy link

@antoniomdk antoniomdk commented Nov 18, 2024

This PR adds support for using uv as a package manager. These changes will not work until uv is backed into the executor image: CircleCI-Public/cimg-python#257

@antoniomdk antoniomdk marked this pull request as ready for review November 18, 2024 22:44
@antoniomdk antoniomdk requested a review from a team as a code owner November 18, 2024 22:44
- run:
working_directory: ~/project/sample_uv
command: |-
uvx run pytest
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
uvx run pytest
uv run pytest

To quote documentation on uv tool run, which uvx is an alias for:

Packages are installed into an ephemeral virtual environment in the uv cache directory.

In my case, uvx run pytest fails to read configuration from pyproject.toml. uv run pytest works perfectly, however.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants